package com.itheima.backstage.controller;

import com.itheima.backstage.manager.HouTaoManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HouTaiController {
    @Autowired
    private HouTaoManager houTaoManager;
    //根据用户id获取用户位置的坐标值
    @GetMapping("/findBaiDuMap/{id}")
    public List findBaiDuMap(@PathVariable String id){
        String[] split = id.split("=");
        return houTaoManager.findBaiDuMap(split[1]);
    }
}
